<template>
  <footer class="bottom-nav-bar">
    <div v-for="(l, i) in FootList" :key="i" class="active nav-item">
      <router-link :to="{ name: l.name }">
        <i class="iconfont icon" :class="l.icon"></i>
        <span>{{ l.text }}</span>
      </router-link>
    </div>
  </footer>
</template>


<script>
export default {
  name: "myfoot",
};
</script>



<style lang="scss" scoped>
.bottom-nav-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  height: 1.7rem;
  padding: 0 1rem;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  background: #fff;
  -webkit-box-shadow: 0 -11px 32px rgb(0 0 0 / 8%);
  box-shadow: 0 -11px 32px rgb(0 0 0 / 8%);
  .nav-item {
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    text-align: center;
    cursor: pointer;
    .icon {
      display: block;
      margin: 0.3rem auto 0.2rem;
      width: 27px;
    }
    span {
      font-size: 1rem;
      position: relative;
      width: 300%;
      left: -100%;
      line-height: 40px;
      transform-origin: 50% 0;
      transform: scale(0.33333);
    }
  }
}
footer {
  position: fixed;
  width: 100%;
  height: 45px;
  left: 0;
  bottom: 0;
  background: #fff;
  display: flex !important;
  z-index: 3000;
  border-top: 0.3px solid #b9b9b9;
  div {
    flex: 1;
    a {
      display: block;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
      padding: 3px 0;
      text-align: center;
      font-family: "微软雅黑";
      color: #999;
      position: relative;
      i {
        width: 100%;
        height: 20px;
        line-height: 20px;
        font-size: 18px !important;
      }
      span {
        width: 100%;
        height: 19px;
        line-height: 19px;
        font-size: 14px;
      }
      .hot {
        position: absolute;
        top: 3px;
        left: 60%;
        display: inline-block;
        width: 20px;
        height: 16px;
        font-size: 12px;
        line-height: 16px;
        border-radius: 50%;
        // background: red;
        // color:#fff;
      }
    }
    .nav-active,
    .router-link-exact-active,
    .router-link-active {
      color: #ff5f16;
      border-color: #ff5f16;
    }
  }
}
</style>